<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta content="text/html; charset=UTF-8" http-equiv="content-type" />
<title> 会员登录 - LooPo-乐铺 </title>
<?php include VIEWS.'header.html'?>
<style type="text/css">
#openid_div {
    margin-top:50px;
    margin-left: 10px;
}

#openid {
    display: inline;
}

#openid legend {
    font-weight: bold;
    color: #FF6200;
    padding-left: 10px;
    padding-right: 10px;
}

#openid form {
    padding: 1em;
}

#openid .openid_login {
    background: url(/images/openid/openid.gif) no-repeat;
    background-position: 0 50%;
    color: #000;
    padding-left: 18px;
    width: 310px;
    margin-right: 10px;
    font-size: 14px;
}

#whatsopenid {
    margin-left: 10px;
}
</style>
</head>

<body>
<?php include VIEWS.'validation.html'?>
<?php include VIEWS.'topbar.html'?>

<div id="content">

<?php include VIEWS.'leftnav.html'?>

<div id="right">

<h1>会员登录</h1>

<?php if ($code['login'] & 8):?><div class="errbox roundNormal">&nbsp;&nbsp;&nbsp;登录信息不匹配。忘记了密码？请点击 <a href="/forgotpwd" class="white">这里</a></div><br clear="all"><?php endif;?>
<?php if ($code['login'] & 1 || $code['login'] & 2):?><div class="errbox roundNormal">&nbsp;&nbsp;&nbsp;请修正下列错误信息：</div><br clear="all"><?php endif;?>
<?php if ($_GET['needlogin']):?><div class="errbox roundNormal">&nbsp;&nbsp;&nbsp;要使用该功能请先登录。还不是会员吗？<a href="/imnew" class="white">点击这里</a>成为我们的会员会有更多优惠！</div><br clear="all"><?php endif;?>

<form method="post" name="loginform" id="loginform" action="/login.php">
<table>
<tr><td>会员名/Email：</td><td><div class="errorbox-<?php echo ($code['login'] & 1) ? 'bad' : 'good'?>"><input title="请输入您的会员名" class="input1 required" id="username" type="text" name="username" value="<?php echo $data['username']?>" size="20" /><div class="errormsg"><?php if  ($code['login'] & 1)  echo '请输入用户名'?></div></div></td></tr>
<tr><td>密码：</td><td><div class="errorbox-<?php echo ($code['login'] & 2) ? 'bad' : 'good'?>"><input title="密码不要忘了输哦" class="input1 required" id="password"   type="password" name="password" value="" size="20" /><div class="errormsg"><?php if ($code['login'] & 2) echo '请输入密码'?></div></div></td></tr>
<tr><td></td><td><input type="checkbox" name="autologin" id="autologin" value="1"<?php if($data['autologin']):?> checked="checked"<?php endif?> /> <label for="autologin">下次自动登录</label>&nbsp;[<a href="/faq/22" target="_blank" title="有什么用">?</a>]</td></tr>
<tr><td colspan="2"><br /><input class="bluebtn" type="submit" value="登&nbsp;入" name="Submit" style="font-weight:bold;" tabindex="1" /> &nbsp; <a href="/forgotpwd" class="px12">忘了密码？</a><input type="hidden" name="from" value="<?php  echo $_REQUEST['from']?>" /></td></tr>
</table>
</form>

<script type="text/javascript">
<!--
new Validation('loginform',{useTitles:true});
if ($F('password') == "") $('password').focus();
if ($F('username') == "") $('username').focus();
//-->
</script>

<div id="openid_div">
    <fieldset id="openid">
        <legend>使用 OpenID[<a title="什么是 OpenID" href="/openid">?</a>] 登录</legend>
        <form action="/openid.php" method="post">
        <input type="hidden" name="openid_action" value="login">
        <div><input type="text" name="openid_url" class="openid_login" value="http://"><input class="bluebtn" type="submit" value="登&nbsp;入" name="Submit" style="font-weight:bold;" tabindex="1" /></div>
        <div><img align="absmiddle" src="/images/openid/google.gif" /> <a href="/openid?openid_action=login&amp;openid_url=https://www.google.com/accounts/o8/id" class="px12">或者使用你的 Google 帐号登录</a></div>
        </form>
    </fieldset>
</div>

<?php do_action('view_login_after'); ?>

    </div>
</div>

<?php include VIEWS.'copyright.html'?>

</body>
</html>
